8b9eeef449c2529d9bd71273e3c4d9c8aa0fb689,src/main/java/org/cloudfoundry/autosleep/worker/remote/CloudFoundryApi.java,CloudFoundryApi,buildAppEvent,#EventResource#,146
Before Change
return null;
} else {
EventEntity cfEvent = event.getEntity();
ApplicationInfo.DiagnosticInfo.ApplicationEvent applicationEvent =
new ApplicationInfo.DiagnosticInfo.ApplicationEvent(cfEvent.getType());
applicationEvent.setActor(cfEvent.getActor());
applicationEvent.setActee(cfEvent.getActee());
applicationEvent.setTimestamp(Instant.parse(cfEvent.getTimestamp()));
applicationEvent.setType(cfEvent.getType());
return applicationEvent;
}
After Change
return null;
} else {
EventEntity cfEvent = event.getEntity();
return ApplicationInfo.DiagnosticInfo.ApplicationEvent.builder()
.actee(cfEvent.getActee())
.actor(cfEvent.getActor())
.name(cfEvent.getType())
.timestamp(Instant.parse(cfEvent.getTimestamp()).toEpochMilli())
.type(cfEvent.getType())
.build();
}
}